﻿<%@ page import="com.apexedu.identity.IdConstants" %>
<%@ page import="com.apexedu.identity.entity.TSysUser" %>
<%@ page import="com.apexedu.portal.constant.Constants" %>
<%@ page import="java.util.Random" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    request.setAttribute("basePath", request.getContextPath());
    TSysUser user = (TSysUser) request.getSession().getAttribute(IdConstants.SESSION_USER);
    String menuid="";
    try {
//        menuid= DBUtil.queryField("select to_char(max(id)) from apexu_oa.tmenu where title='信息平台管理'" );
    }catch (Exception e) {
        System.out.println(e.toString());
    }
    System.out.print("信息平台管理编号：" + menuid);
    Random rand =new Random();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title><%=Constants.ProjectInfo.PROJECT_NAME%>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${basePath}/resources/css/mh.shmy.css" rel="stylesheet">
    <script type="text/javascript" src="${basePath}/resources/ui/js/jquery-1.10.2.min.js"></script>
    <script src="${basePath}/resources/js/mh.shmy.index.js" type="text/javascript"></script>
    <script src="${basePath}/component/layer/layer.js" type="text/javascript"></script>
    <script type="application/javascript">
        function addWin(loc){
            var url='${basePath}/s/uc/shmy/settj-'+loc;
            layer.open({
                type: 2,
                title: '请选择您需要的统计图表',
                shadeClose: true,
                shade: false,
                maxmin: true, //开启最大化最小化按钮
                area: ['600px', '400px'],
                content: url,
                btn: ['确定','关闭'],
                yes: function(index){
                    var body=layer.getChildFrame('body', index);
                    var id=body.find('input').val();
                    if (id!=''){
                        var url = "${basePath}/system/reportFactorybase-addreport.action?"+(new Date()).getTime();
                        $.get(url, {id: id,location:loc}, function(data){
                            if (data=='ok') {
                                document.getElementById(loc).contentWindow.location.reload(true);
                                layer.close(index)
                            }else{
                                alert("");
                            }
                        });
                    }else{
                        alert("请选择您需要的报表！");
                    }
                },
                no: function(index){
                    layer.close(index);
                }
            });


        }
        function delWin(loc){
            var url = "${basePath}/system/reportFactorybase-delreport.action?"+(new Date()).getTime();
            $.get(url, {location:loc}, function(data){
                if (data=='ok'){
                    document.getElementById(loc).contentWindow.location.reload(true);
                }
            });
        }
    </script>
</head>
<body>
<div id="main">
    <jsp:include page="left.jsp"/>
    <div id="right">
        <jsp:include page="head.jsp"/>
        <div id="contentSub">
            <div id="contentLeft">
                <div class="subContentDiv">
                    <div id="lt">
                        <jsp:include page="rc.jsp"/>
                    </div>
                    <div id="lbl" style="line-height: 146px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://nurp.sada.sh.edu.cn')">
                        <div style="width: 100%;position: relative;">
                            <img src="${basePath}/resources/images/2238.gif" style="width: 100px;position: absolute;left: 20px;top: 22px;">
                            <span style="display: inline-block;height: 146px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">管理平台</span>
                        </div>
                    </div>
                    <div id="lbr" style="line-height: 146px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://oa.sada.sh.edu.cn')">
                        <div style="width: 100%;position: relative;">
                            <img src="${basePath}/resources/images/59.png" style="width: 100px;position: absolute;left: 20px;top: 22px;">
                            <span style="display: inline-block;height: 146px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">财务办公和采购</span>
                        </div>
                    </div>
                </div>
            </div>
            <div id="contentRight">
                <div class="subContentDiv">
                    <div id="rtl">
                        <jsp:include page="rl.jsp"/>
                    </div>
                    <div id="rtr">
                        <iframe allowtransparency="true" frameborder="0" width="100%" height="226" scrolling="no" id="righttopnews"  src="${basePath}/s/uc/shmy/fdn-righttop(7)"></iframe>
                    </div>
                    <div id="rbl">
                        <iframe allowtransparency="true" frameborder="0" width="100%" height="226" scrolling="no" id="leftbottomnews"  src="${basePath}/s/uc/shmy/fdn-leftbottom(7)"></iframe>
                    </div>
                    <div id="rbr">
                        <div class="titleR">服务咨询</div>
                        <div class="contentR">
                            <ul>
                                <c:forEach items="${fwzx}" var="lbxx">
                                    <li
                                            title="${lbxx.title}" onclick="window.open('${basePath}/s/uc/se/sd/${lbxx.id}')">${lbxx.title}</li>
                                </c:forEach>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div id="contentBottom">
                <div class="subContentDiv">
                    <div id="bl">
                        <div id="blt" style="line-height: 87px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://116.236.134.245:8100/plug-in/Meiyuan/index.jsp?PageOnly=true')">
                            <div style="width: 100%;position: relative;">
                                <img src="${basePath}/resources/images/2008.gif" style="height: 60px;position: absolute;left: 20px;top: 20px;">
                                <span style=" display: inline-block;height:87px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">党务公开</span>
                            </div>
                        </div>
                        <div id="ykt" style="margin-top: 7px;line-height: 87px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://116.236.134.230:8080/ecard/sadaportalHome.action')">
                            <div style="width: 100%;position: relative;">
                                <img src="${basePath}/resources/images/15.gif" style="height: 60px;position: absolute;left: 20px;top: 5px;" height="60">
                                <span style="display: inline-block;height: 87px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">一卡通查询</span>
                            </div>
                        </div>
                        <div id="blm" style="margin-top: 7px;line-height: 87px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://oa.sada.sh.edu.cn/UIProcessor?Table=WORKFLOW_TOTASKS')">
                            <div style="width: 100%;position: relative;">
                                <img src="${basePath}/resources/images/1017.gif" style="height: 60px;position: absolute;left: 20px;top: 5px;">
                                <span style="display: inline-block;height: 87px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">流程处理中心</span>
                            </div>
                        </div>
                        <div id="tsg" style="margin-top: 7px;line-height: 87px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://oa.sada.sh.edu.cn/categoryLayout.do?Action=<%=menuid%>&WindowType=7&extWindow=true&PopupWin=false&WindowType=7#')">
                            <div style="width: 100%;position: relative;">
                                <img src="${basePath}/resources/images/2096.gif" style="height: 60px;position: absolute;left: 20px;top: 5px;" >
                                <span style="display: inline-block;height: 87px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">系统运维中心</span>
                            </div>
                        </div>
                        <div id="kygl" style="margin-top: 7px;line-height: 87px; font-size: 24px; cursor: pointer;  background: white;" onclick="window.open('http://116.236.134.233/business/caslogin.jsp')">
                            <div style="width: 100%;position: relative;">
                                <img src="${basePath}/resources/images/6666.gif" style="height: 60px;position: absolute;left: 20px;top: 5px;">
                                <span style="display: inline-block;height: 87px;vertical-align: top;width: 100%;text-align: left;text-indent: 130px;">科研管理</span>
                            </div>
                        </div>
                        <div id="blb" style="display: none"></div>
                    </div>
                    <div id="bc">
                        <div class="titleB">待办事项</div>
                        <div class="contentB">
                            <ul>
                                <c:forEach items="${lczx}" var="lbxx">
                                    <li onclick="window.open('${lbxx.url}')"><span class="lczxtitle" title="${lbxx.title}">${lbxx.title}</span><span class="lczxstate">${lbxx.state}</span></li>
                                </c:forEach>
                            </ul>
                        </div>
                        <div class="moreB">
                            <img src="${basePath}/resources/images/shmy/icon_chankangengduo.jpg">
                            点击查看更多
                        </div>
                    </div>
                    <div id="br">
                        <div class="titleB">服务大厅</div>
                        <div class="fwcontent">
                            <ul>
                                <c:forEach items="${dyfw}" var="item">
                                    <li>
                                        <div class="fwnr"><img src="${basePath}/resources/images/icons/basis/${item.tb}"
                                                               style="height: 60px;"
                                                               onerror="this.src='${basePath}/resources/images/icons/basis/icon-<%=rand.nextInt(80)+10%>.png'">
                                        </div>
                                        <div class="fwmc">${item.menuname}</div>
                                        <div class="fwbutton">
                                            <div class="fwzx" onclick="window.open('${item.menupath}')">在线办理</div>
                                            <div class="fwxq"
                                                 onclick="window.open('${basePath}/s/uc/se/sd/${item.menuid}')">服务详情
                                            </div>
                                        </div>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <div onclick="window.open('${basePath}/s/uc/se/i/${dyfwid}')" class="fwdyButtonDiv">订阅更多</div>
                    </div>
                </div>
            </div>
        </div>
        <iframe src="http://oa.sada.sh.edu.cn/welcome.do" width=1 height=0></iframe>
        <jsp:include page="foot.jsp"/>
    </div>
</div>

</body>
</html>
